<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<script type="text/javascript">
	var page;
	var pageId;
	function modifyPwd() {
		if ($('#pwdForm').form('validate')) {
			$.post("${pageContext.request.contextPath}/home/modifyPwd.do", {
				loginPassword : $('#loginPassword').val(),
				newPassword : $('#newPassword').val()
			}, function(data) {
				data = eval(data);
				if (data.success) {
					popInfo("pwdInfo", data.message);
				} else {
					popInfo("pwdError", data.message);
				}
			}, "json");
		}
	}

	$(function() {
		//修改密码绑定事件
		$('#open_change_password').click(function() {
			popWindow('modify-pwd-win', 'mainBody');//打开
		});
	});
	
</script>

	<!-- tab右键菜单 -->
	<div id="mm" class="easyui-menu" style="width:150px;display:none;">
		<div id="mm-tabclose">关闭</div>
		<div id="mm-tabcloseall">关闭全部</div>
		<div id="mm-tabcloseother">关闭其他</div>
	</div>
	
	<div id="tab-tools">
		<a href="javascript:;" class="all_del" data-options="plain:true,iconCls:'icon-remove'" onclick="closeAllTab();" title="关闭全部">关闭</a>
	</div>

	<!--  modify password start -->
	<div class="imoia_pop" id="modify-pwd-win" style="width:430px;">
		<div class="imoia_pop_title"><strong>修改密码</strong><span class="imoia_pop_closed" onclick="popClosed('modify-pwd-win')">关闭</span></div>
		<form id="pwdForm" action="user/modifyPwd.do" class="ui-form" method="post">
			<div class="imoia_pop_con">
				<ul>
					<li><strong>旧密码：</strong> <span> <input
							id="loginPassword" name="loginPassword" type="password"
							class="imoia_intxt easyui-validatebox" data-options="required:true,missingMessage:'请输入旧密码.'" />
					</span>
					</li>
					<li><strong>新密码：</strong> <span> <input
							id="newPassword" name="newPassword" type="password"
							class="imoia_intxt easyui-validatebox" data-options="required:true,missingMessage:'请输入新密码.'" />
					</span>
					</li>
					<li><strong>确认新密码：</strong> <span> <input
							id="confirmPassword" name="confirmPassword" type="password"
							class="imoia_intxt easyui-validatebox" data-options="required:true,missingMessage:'请输入确认新密码.'" /> 
					</span>
					</li>
				</ul>
			</div>
			<div class="imoia_pop_btn">
				<span><input type="button" name="" value="保存"
					class="imoia_pop_btn_save" onclick="modifyPwd()" /> </span> <span><input
					type="button" name="" value="关闭" class="imoia_pop_btn_closed"
					onclick="popClosed('modify-pwd-win')" /> </span>
			</div>
			<div class="imoia_pop_error" id="pwdError">
				<p></p>
			</div>
			<div class="imoia_pop_correct" id="pwdInfo">
				<p></p>
			</div>
		</form>
	</div>
	<!-- modify password end  -->
	
	<div class="imoia_dap" id="pop_confirm">
		<div class="imoia_dap_title"><strong>确认信息</strong><span class="imoia_pop_closed" onclick="popClosed('pop_confirm')">关闭</span></div>
		<div class="imoia_dap_con"><p id="confirmMessage"></p></div>
		<div class="imoia_dap_btn">
			<span><input type="button" id="popConfirmYes" value="确认" class="imoia_dap_btn_save" onclick="popClosed('pop_confirm');"/></span>
			<span><input type="button" name="" value="取消" class="imoia_dap_btn_closed" onclick="popClosed('pop_confirm');"/></span>
		</div>
  	</div>
  	
  	<div class="imoia_roll">
		<div class="imoia_roll_title"><strong>提示信息</strong><span class="imoia_roll_closed">关闭</span></div>
		<div class="imoia_roll_con"><p id="rollMessage"></p></div>
  	</div>
	
	<div id="ims-ds-tb-right-menu" class="easyui-menu" style="width:120px;display:none;">
		<div onclick="imsSubDataSetTable('${pageContext.request.contextPath}', 'edit')" data-options="iconCls:'icon-edit'">修改数据表</div>
		<div onclick="imsSubDataSetTable('${pageContext.request.contextPath}', 'del')" data-options="iconCls:'icon-remove'">删除数据表</div>
	</div>
